package com.ninetaildemonfox.zdl.socialproject.mvp.ui.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.ninetaildemonfox.zdl.socialproject.base.BaseActivity;
import com.ninetaildemonfox.zdl.ninetaildemonfox.utils.AppManager;
import com.ninetaildemonfox.zdl.socialproject.R;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * @author NineTailDemonFox
 * @date 2019/7/23 9:29
 * 功能描述： 提现成功
 * 联系方式：1037438704@qq.com
 */

public class CashSuccessActivity extends BaseActivity {
    @BindView(R.id.image_left_finish)
    ImageView imageleftFinish;
    @BindView(R.id.text_center)
    TextView textCenter;
    @BindView(R.id.text_right)
    TextView textRight;
    @BindView(R.id.text_success)
    TextView textSuccess;

    @Override
    protected int getLayoutResource() {
        return R.layout.activity_cash_success;
    }

    @Override
    protected void onInitialization(Bundle bundle) {
        imageleftFinish.setVisibility(View.VISIBLE);
        textCenter.setText("提现成功");
    }

    @OnClick({R.id.image_left_finish, R.id.text_success})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.image_left_finish:
                finish();
                break;
            case R.id.text_success:
                AppManager.getInstance().killActivity(PreservationActivity.class);
                finish();
                break;
            default:
        }
    }

    public static void start(Context me) {
        me.startActivity(new Intent(me, CashSuccessActivity.class));
    }
}
